import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './styles/global.css'
// import ElementUI from 'element-ui'// 导入element-ui组件库
// import 'element-ui/lib/theme-chalk/index.css'// 导入组件库的样式
// Vue.use(ElementUI) // 注册组件库
import '@/utils/element.js'
import http from '@/utils/request'
import moment from 'moment'
// 富文本编辑器
import VueQuillEditor from 'vue-quill-editor'

// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor) // 注册富文本编辑器

Vue.filter('formDateTime', (val, str = 'YYYY-MM-DD hh:mm:ss') => {
  return moment(val).format(str)
})
// 把 axios 挂载到 Vue 上
Vue.prototype.$http = http

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
